package com.chuang.server.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 账单表
 * </p>
 *
 * @author vicente
 * @since 2022-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_bill")
public class Bill extends Model<Bill> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 分类id
     */
    private Long categoryId;

    /**
     * 账单的记录金额
     */
    private BigDecimal billPrice;

    /**
     * 账单的备注
     */
    private String remarke;

    /**
     * 0:显示，1：不显示
     */
    private String delFlag;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
